import random
num = random.randint(a=1,b=10)
guess_num = int(input("请输入你要猜的数字"))
if guess_num == num:
    print("太棒了，猜对了")
else:
    if guess_num > num:
        print("你猜的数大了")
    else:
        print("你猜的数小了")
    guess_num = int(input("请输入你要猜的数字"))
    if guess_num == num:
        print("太棒了，猜对了")
    else:
        if guess_num > num:
            print("你猜的数大了")
        else:
            print("你猜的数小了")
        guess_num = int(input("请输入你要猜的数字"))
        if guess_num == num:
            print("太棒了，猜对了")
        else:
            print("Sorry,全部猜错了应该是:%d"%(num))


